127ca9a7879970af433eb00f224f669ecb9d3fc6,community/src/main/java/org/neo4j/server/webadmin/rest/AdminPropertiesService.java,AdminPropertiesService,getValue,#String#,54
Before Change
// Legacy mapping for webadmin app
if ( "neo4j-servers".equals( lowerCaseKey ) )
{
StringBuilder sb = new StringBuilder();
sb.append( "{ \"" );
sb.append( uriInfo.getBaseUri() );
sb.append( "\" : " );
sb.append( "{\"url\" : \"" );
sb.append( getDataUri() );
sb.append( "\"" );
sb.append( "," );
sb.append( "\"manageUrl\" : \"" );
sb.append( getManagementUri() );
sb.append( "\"}" );
sb.append( "}" );
return Response.ok( sb.toString() ).type( MediaType.APPLICATION_JSON ).build();
}
else if ( DATA_URI_KEY.equals( lowerCaseKey ) )
{
After Change
if ( "neo4j-servers".equals( lowerCaseKey ) )
{
AdminPropertyRepresentation representation = new AdminPropertyRepresentation( uriInfo.getBaseUri().toString() );
representation.addUrl( "url", getDataUri() );
representation.addUrl( "manageUrl", getManagementUri() );
return Response.ok( JsonRenderers.DEFAULT.render( representation ) ).
type( MediaType.APPLICATION_JSON ).
build();
}